package com.mce.nebula.dto;

import com.mce.nebula.entity.Team;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 团队响应DTO
 */
@Data
public class TeamResponse {
    
    private Long id;
    private String tenantId;
    private String tenantName;
    private String tenantAlias;
    private Boolean isActive;
    private Long creater;
    private Integer limitMemory;
    private String enterpriseId;
    private String namespace;
    private String logo;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    
    public TeamResponse(Team team) {
        this.id = team.getId();
        this.tenantId = team.getTenantId();
        this.tenantName = team.getTenantName();
        this.tenantAlias = team.getTenantAlias();
        this.isActive = team.getIsActive();
        this.creater = team.getCreater();
        this.limitMemory = team.getLimitMemory();
        this.enterpriseId = team.getEnterpriseId();
        this.namespace = team.getNamespace();
        this.logo = team.getLogo();
        this.createTime = team.getCreateTime();
        this.updateTime = team.getUpdateTime();
    }
}





